<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title>银行投诉录入</title>
</head>
<body>
<div class="contant">
<div class="row">
    <!--<div class="top">合规部>银行投诉录入</div>-->
    <div class="content">
    <form action="{:U('Bank/complain_add')}" method="post" id='add'>
        <div class="box">
            <h1>银行投诉录入<span>(标*为必填项)</span></h1>
            <div class="list-block">
                <div class="row">
                    <label><i class="required">*</i>标题: </label>
                    <input type="text" name="title" value=''>

                </div>
                <div class="row">
                   <label> <i class="required">*</i>投诉类型:</label>
                    <select name="complain_type" id="" style="width: 140px;height: 28px;">
                        <option value="1">业务问题</option>
                        <option value="2">客户问题</option>
                        <option value="3">流程问题</option>
                    </select>
                </div>
                <div class="row">
                    <label><i class="required">*</i>申请人: </label>
                    <input type="text" name="user_name" value=''>
                    <label><i class="required">*</i>手机号: </label>
                    <input type="text" name="user_phone" id='phone' value=''>
                    <label><i class="required">*</i>部门: </label>
                    <select name="gid">
                      <volist name='group' id='group'>
                         <option value='{$group.id}'>{$group.name}</option>
                      </volist>
                    </select>
                </div>
                <div class="row">
                    <label><i class="required">*</i>问题描述: </label>
                    <textarea name="desc" id="" rows="7" style="width: 70%"></textarea>
                </div>
                <div class="box smail-box">
                    <div class="list-block">
                        <input type="button" class="button01" id='tijiao' value="提交" name="">
                        <input type="button" class="button01" id='cancel' value="暂不提交" name="">
                    </div>
                </div>
            </div>
        </div>
        </form>
    </div>
</div>
</div>
    <script type="text/javascript">
      $('#tijiao').click(function(){
        var phone = document.getElementById('phone').value;
        if(!(/^1[34578]\d{9}$/.test(phone))){
            alert("手机号码有误,请重填");
            return false;
        }
        if($("input[name='title']").val()==''){
          return false;
        }else if($("input[name='user_name']").val()==''){
          return false;
        }else if($("input[name='user_phone']").val()==''){
          return false;
        }else if($("textarea[name='desc']").val()==''){
          return false;
        }
        $('#add').submit();

      });

      $('#cancel').click(function(){
         location.href='{:U("Bank/Complain_index")}';
      });

    </script>
</body>
</html>